<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/chart.css">
</head>

<body>
    <div class="pic">
        <h2>STEPS</h2>
        <h3>THIS WEEK</h3>
        <ul>
            <li><span>20,000</span></li>
            <li><span>10,000</span></li>
            <li><span>15,000</span></li>
            <li><span>7,000</span></li>
            <li><span>7,000</span></li>
            <li><span>10,000</span></li>
            <li><span>10,000</span></li>
        </ul>
        <h1>93,000</h1>
    </div>
</body>
<script>
    var pic = document.getElementsByClassName('pic')[0];
    pic.onclick = function () {
        this.classList.toggle('active');
    }
</script>

</html>